Q: Local Variable is having _______ scope ?
Solution: The correct answer is: local
Q: Inner Block can access variables declared ___________.
Solution: The correct answer is: inside Outer Block
Q: What is the output of the following code statements? The compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration. An integer is one byte long. interger a pointer c,d a=30 c=&a d=c a=a+10 print *c
Solution: The correct answer is: 40
Q: Local Variable is Accessible in - [Select Appropriate Option(s)]
Solution: The correct answers are: From function, From block in which it is declared
Q: Higher priority is given to ________ variable than _______ variable.
Solution: The correct answer is: Local , Global
Q: What is the output of this code? int main() { int a = 0, i = 0, b; for (i = 0;i < 5; i++) { a++; continue; } }
Solution: The correct answer is: 5
Q: What will be the output of the following program? //assume all header files are included void main() { int var1=10; { int var2=20; printf("%d %d",var1,var2); } printf("%d %d",var1,var2); }
Solution: The correct answer is: Compile Time Error
Q: What is the output of the following code statements? The compiler saves the first integer at the memory location 4062. An integer is one byte long. interger a pointer b a=20 b=&a print *b
Solution: The correct answer is: 20
Q: Guess the output of program - //assume all header files are included void main() { int var1=10; { int var1=20; printf("%d %d",var1,var1); } printf("%d %d,var1,var1"); }
Solution: The correct answer is: 20 20 10 10
You Have Score    | /9 |